// 统一管理action的type以及生产action对象

// 统一管理action对象的type属性
export const actionType = {
    CHANGEAGE: 'CHANGEAGE',
    CHANGENAME: 'CHANGENAME',
    DELORDER: 'DELORDER'
}

// 统一管理action对象
export const actionCreator = {
    changeAge: ()=>({type: actionType.CHANGEAGE}),
    changeName: (name)=>({type: actionType.CHANGENAME, val: name}),
    delOrder: (id)=>({type: actionType.DELORDER, id})
}